package com.xjtu.conan.service;

import com.xjtu.conan.entity.NewsCommentsInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.conan.entity.TheatreCommentsInfo;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 新闻评论表 服务类
 * </p>
 *
 * @author 一只黑猩猩
 * @since 2021-04-19
 */
public interface NewsCommentsInfoService extends IService<NewsCommentsInfo> {
    public List<NewsCommentsInfo> getAllNewsCommentsInfo(int current, int size);

    public NewsCommentsInfo getNewsCommentByid(Long tcid);

    public int addNewsComments(NewsCommentsInfo newscommentsInfo) throws IOException;

    public List<NewsCommentsInfo> getNewsCommentsBynid(Long nid);

    public List<NewsCommentsInfo> getNewsCommentsBypid(Long pid);

    public int deleteNewsComments(Long ncid);

    public int updateNewsComments(NewsCommentsInfo newscommentsInfo);

    public int getTotal();
}
